package com.jar.exercise.多线程.同步操作;

public class 线程start规则 {
    static int a = 1;

    public static void main(String[] args) {
        Thread tb = new Thread(() -> {
            System.out.println(a);
        });
        Thread ta = new Thread(() -> {
            a = 2;
            tb.start();
        });

        ta.start();
    }
}
